from flask import Flask
from flask import render_template
app=Flask(__name__)

@app.route('/book_list/')
def books_list():
    books=[
        {'book_name':'《鹿鼎记》','book_type':'必读','author':'韦大宝','public':'中国出版社'},
        {'book_name':'《凹凸曼大战奥特曼》','book_type':'选读','author':'凹凸曼','public':'新华出版社'},
        {'book_name':'《安徒生童话》','book_type':'必读','author':'安徒生','public':'西安交大出版社'},
        {'book_name':'《海绵宝宝》','book_type':'选读','author':'宝宝','public':'清华大学出版社'},
        {'book_name':'《神雕侠侣》','book_type':'必读','author':'杨过','public':'黄老邪出版社'}
    ]
    return render_template('qianduanshu.html',**locals())
if __name__ == '__main__':
    app.run(
        host='127.0.0.1',
        port=80,
        debug=True
    )
